<?php

namespace app\service\admin;

use app\db\admin\D_map_relation;

class S_map_relation
{
    public $d_map_relation;

    public function __construct()
    {
        $this->d_map_relation = new D_map_relation();
    }

    /**
     * 获取数据详情
     * @param string $paramObj
     * @return array
     */
    public function info($paramObj=""){
        return $this->d_map_relation->info($paramObj);
    }

    /**
     * 所有数据
     * @param string $paramObj
     * @return array
     */
    public function allData($paramObj=""){
        return $this->d_map_relation->allData($paramObj);
    }

    /**
     * 创建数据
     * @param string $paramObj
     * @return array
     */
    public function store($paramObj=""){
        return $this->d_map_relation->store($paramObj);
    }

    /**
     * 删除数据
     * @param string $paramObj
     * @return array
     */
    public function delete($paramObj=""){
        return $this->d_map_relation->delete($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}